package com.mall.service.impl;

import com.mall.service.goods.CategoryService;
import com.mall.service.goods.SkuService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class InitService implements InitializingBean {

    @Autowired
    private CategoryService categoryService;

    @Autowired
    private SkuService skuService;

    @Override
    public void afterPropertiesSet() throws Exception {
//        categoryService.saveCategoryTreeToRedis();//加载商品分类导航缓存
//        skuService.saveAllPriceToRedis();//加载价格数据
    }
}
